import http from "@/api";
import { PORT1 } from "@/api/config/servicePort";

// 获取部门列表
export const getDeptListApi = (params: any) => {
	return http.get(PORT1 + "/system/dept/getDeptList", params, {});
};

// 添加部门
export const addDeptApi = (params: any) => {
	return http.post(PORT1 + "/system/dept/addDept", params, {});
};

// 编辑部门
export const editDeptApi = (params: any) => {
	return http.post(PORT1 + "/system/dept/editDept", params, {});
};

// 删除部门
export const deleteDeptApi = (params: any) => {
	return http.post(PORT1 + "/system/dept/deleteDept", params, {});
};
